﻿@model IEnumerable<Classified.Domain.Entities.Location>
<h1>
    List of <small>State in @ViewBag.CountryName</small></h1>
<p align="right" style="float: left" class="noprint">
    <a href="javascript:void(0);" class="btn newDetailState btn-info"><i class="icon-plus icon-white">
    </i>Create new</a>
    <p />
    <table class="table table-bordered table-striped">
        <thead>
            <th>
                Location Name
            </th>
            <th>
                Country Name-Iso Code
            </th>
            <th>
                Is Active
            </th>
            <th>
                Is Default
            </th>
            <th>
            </th>
        </thead>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.Name)
                </td>
                <td>
                    @item.UrlName
                </td>
                <td>
                    @item.IsActive
                </td>
                <td>
                    @item.IsDefault
                </td>
               
                <td>
                    <a href="@Url.Action("EditLocation", "Admin", new { id = item.Id })" class="btn primary editLocationDetails" idLocationDetails="@item.Id">
                        <i class=" icon-edit icon"></i>Edit</a> <a href="@Url.Action("DeleteLocation", "Admin", new { id = item.Id })" class="btn btn-danger" onclick="return confirm('Are you sure you wish to delete this Location?');">
                            <i class="icon-trash icon-white"></i>Delete</a> @*@Html.ActionLink("Edit", "EditLocation", "Admin", new { id = item.Id }, new { idLocationDetails = item.Id, @class = "btn primary small editLocationDetails" })
                    @Html.ActionLink("Delete", "DeleteLocation", "Admin", new { id = item.Id }, new { @class = "btn small ", onclick = "return confirm('Are you sure you wish to delete this Location?');" })*@
                </td>
            </tr>
        }
    </table>
